home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tk
/
ownselect.z
/
ownselect
Wrap
Text File
|
1998-10-30
|
3KB
|
67 lines
TTTTkkkk____OOOOwwwwnnnnSSSSeeeelllleeeeccccttttiiiioooonnnn((((3333TTTTkkkk)))) TTTTkkkk____OOOOwwwwnnnnSSSSeeeelllleeeeccccttttiiiioooonnnn((((3333TTTTkkkk))))
NNNNAAAAMMMMEEEE
Tk_OwnSelection - make a window the owner of the primary selection
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
TTTTkkkk____OOOOwwwwnnnnSSSSeeeelllleeeeccccttttiiiioooonnnn(_t_k_w_i_n, _s_e_l_e_c_t_i_o_n, _p_r_o_c, _c_l_i_e_n_t_D_a_t_a) |
AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
Tk_Window _t_k_w_i_n (in) Window that is to become new
selection owner.
Atom _s_e_l_e_c_t_i_o_n (in) The name of the selection to be |
owned, such as XA_PRIMARY.
Tk_LostSelProc *_p_r_o_c (in) Procedure to invoke when _t_k_w_i_n
loses selection ownership later.
ClientData _c_l_i_e_n_t_D_a_t_a (in) Arbitrary one-word value to pass
to _p_r_o_c.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
TTTTkkkk____OOOOwwwwnnnnSSSSeeeelllleeeeccccttttiiiioooonnnn arranges for _t_k_w_i_n to become the new owner of the |
selection specified by the atom _s_e_l_e_c_t_i_o_n. After this call completes, |
future requests for the selection will be directed to handlers created |
for _t_k_w_i_n using TTTTkkkk____CCCCrrrreeeeaaaatttteeeeSSSSeeeellllHHHHaaaannnnddddlllleeeerrrr. When _t_k_w_i_n eventually loses the
selection ownership, _p_r_o_c will be invoked so that the window can clean
itself up (e.g. by unhighlighting the selection). _P_r_o_c should have
arguments and result that match the type TTTTkkkk____LLLLoooossssttttSSSSeeeellllPPPPrrrroooocccc:
typedef void Tk_LostSelProc(ClientData _c_l_i_e_n_t_D_a_t_a);
The _c_l_i_e_n_t_D_a_t_a parameter to _p_r_o_c is a copy of the _c_l_i_e_n_t_D_a_t_a argument
given to TTTTkkkk____OOOOwwwwnnnnSSSSeeeelllleeeeccccttttiiiioooonnnn, and is usually a pointer to a data structure
containing application-specific information about _t_k_w_i_n.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
own, selection owner
PPPPaaaaggggeeee 1111